package com.xxmassdeveloper.mpchartexample.sqlite.tables;

import android.database.sqlite.SQLiteDatabase;

public class SqliteV1 implements SqliteInterface {
	
	/*创建便签数据库表SQL*/
	private final String mNoteTableCreate = 
			"CREATE TABLE IF NOT EXISTS " + Tables.mWeightTable + "( "
					+ Tables.mWeightId + " TEXT NOT NULL, "
					+ Tables.mWeightYear + " TEXT NOT NULL, "
					+ Tables.mWeightMonth + " TEXT NOT NULL, "
					+ Tables.mWeightDay + " TEXT NOT NULL, "
					+ Tables.mWeightValue + " FLOAT NOT NULL "  +" );";
	
	@Override
	public boolean onCreate(SQLiteDatabase database) {
		database.execSQL(mNoteTableCreate);
		return true;
	}

	@Override
	public boolean onUpgrade(SQLiteDatabase database) {
		return true;
	}

}
